<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 私信</li>
        </ul>
    </div>
    <div id="rightside">
        <div class="contentcontainer">
            <div class="headings altheading">
                <h2>私信列表</h2>
            </div>
            <div class="contentbox">
                <div class="extrabottom">
                    <form method="get" action="admin.php">
                        起始位置:<input type="text" name="start" value="$_GET[start]"class="inputbox smallbox" />          
                        请求长度:<input type="text" name="perpages" value="$_GET[perpages]"class="inputbox smallbox" />
                        用户Uid:<input type="text" name="uid" value="$_GET[uid]"class="inputbox smallbox" />  
                        <select name="perpage">
                            <option value="20"$perpages[20]>每页显示20个</option>
                            <option value="50"$perpages[50]>每页显示50个</option>
                            <option value="100"$perpages[100]>每页显示100个</option>
                        </select> <input type="submit" value="查找私信" class="btn" />
                         <input type="hidden" name="ac" value="message" />
                         <input type="hidden" name="op" value="getMessageList" />
                        <a href="admin.php?ac=message" class="btn">清空条件</a>
                    </form>
                </div>
                <div style="clear: both;"></div>
                <table width="100%">
                    <thead>
                        <tr>
                            <th>发送人</th>
                            <th>接收人</th>
                            <th>内容</th>
                            <th>私信时间</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <!--{eval $i=0;}-->
                        <!--{loop $list $value}-->
                        <!--{eval $i++;}-->
                        <tr <!--{eval echo showRowHilite($i); }--> >
                        	<!--{if $value['type'] == 2}-->
                            <td><a href="admin.php?ac=user&uid={$value[uid]}">{$value[uid]}</a></td>
                            <td><a href="admin.php?ac=user&uid={$value[mUid]}">$value[mNickname]</a></td>
                            <!--{else}-->
                            <td><a href="admin.php?ac=user&uid={$value[mUid]}">$value[mNickname]</a></td>
                            <td><a href="admin.php?ac=user&uid={$value[uid]}">{$value[uid]}</a></td>
                            <!--{/if}-->
                            <td>
                            	<a href="admin.php?ac=message&op=getMessageInfo&uid={$value[uid]}&mUid={$value[mUid]}"><!--{eval echo $value[lastContent].$value[content];}--></a>
                            	</td>
                            <td>
                                <!--{date('Y-m-d H:i',$value[updateTime])}-->
                            </td>
                            <td>
                                <!--{date('Y-m-d H:i',$value[time])}-->
                            </td>
                            <td><a href="admin.php?ac=user&uid={$value[uid]}" ><img src="static/img/icons/gif_people.gif"
                                                                                     width="24" height="24" /></a> &nbsp;
                                  <a href="admin.php?ac=message&op=removeMessage&uid={$value[uid]}&mUid={$value[mUid]}<!--{if $_GET['op'] == 'getMessageInfo'}-->&id={$value[id]}<!--{/if}-->" onclick="ajaxget(this.href);return false;"><img
                                        src="static/img/icons/gif_delete.gif" width="24" height="24" /></a>
                            </td>
                        </tr>
                        <!--{/loop}-->
                    </tbody>
                </table>
                <div class="extrabottom">
                    <ul>
                        <li><img src="static/img/icons/gif_people.gif" />作者信息</li>
                        <li><img src="static/img/icons/gif_delete.gif" /> 删除日记</li>
                    </ul>
                    <div class="bulkactions">
                        <ul class="pagination">
                            <!--{if $prevpurl!=''}-->
                            <li class="text"><a href="{$firstpurl}" title="">第一页</a></li>
                            <li class="text"><a href="{$prevpurl}" title="">上一页</a></li>
                            <!--{/if}-->
                            <li class="text"><a href="{$nextpurl}" title="">下一页</a></li>
                        </ul>
                        <div style="clear: both;"></div>
                    </div>
                </div>
                <div style="clear: both;"></div>
            </div>
        </div>
    </div>
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->